package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.domain.Record;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;

public interface RecordMapper {
    Integer addrecond(Record record);
    @Results(id = "recondMap", value = {
            @Result(id = true,column = "recond_id",property = "id"),
            @Result(column = "recond_bookname",property = "bookname"),
            @Result(column = "recond_bookisbn",property = "bookisbn"),
            @Result(column = "recond_borrower",property = "borrower"),
            @Result(column = "recond_borrowtime",property = "borrowTime"),
            @Result(column = "recond_remandtime",property = "returnTime"),
    })
    Page<Record> searchrecond(Record record);
}

